package com.monkey.demo;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@MapperScan(value = "com.monkey.*.dao")
@ComponentScan(value = "com.monkey")
@EnableCaching
public class DemoApplication {
    public static void main(String[] args) {
        System.setProperty("Log4jContextSelector", "org.apache.logging.log4j.core.async.AsyncLoggerContextSelector");
        SpringApplication.run(DemoApplication.class);
        System.out.println("========================================================================");
        System.out.println("=========================== monkey应用框架启动成功 ===========================");
        System.out.println("========================================================================");
        System.out.println("swagger地址：http://localhost:" + 8080 + "/swagger-ui.html");
    }
}
